package org.hilo.boot.core.value;

import java.lang.reflect.Field;

/**
 * use FieldInitValue to init Object value
 * @see FieldInitValue
 * 
 * @author zollty
 * @since 2018-03-20
 */
public class FastObjectInitValue extends AbstractObjectInitValue {
    
    private FieldInitValue fieldInit;
    
    public FastObjectInitValue() {
    }
    
    public FastObjectInitValue(FieldInitValue fieldInit) {
        this.fieldInit = fieldInit;
    }

    @Override
    protected void initField(Field field, Object standardBean, int type) {
        fieldInit.initField(field, standardBean, type);
    }

    /**
     * @return the fieldInit
     */
    public FieldInitValue getFieldInit() {
        return fieldInit;
    }

    /**
     * @param fieldInit the fieldInit to set
     */
    public void setFieldInit(FieldInitValue fieldInit) {
        this.fieldInit = fieldInit;
    }

}
